package com.baizhi.dao;

import com.baizhi.entity.Brand;
import com.baizhi.entity.Phone;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PhoneDAO {
    //查询所有
    public List<Phone> selectPhone(@Param("page") Integer page,@Param("rows") Integer rows);

    //查询总条数
    public Integer selectPhoneSum();

    //添加手机
    public void insertPhone(@Param("p")Phone phone);

    //删除手机
    public void deletePhone(Integer id);

    //查询一条数据手机
    public Phone selectPhoneOne(Integer id);

    //修改数据手机
    public void updatePhone(@Param("p")Phone phone);


    ////////////////////////////////////////

    public List<Brand> selectBrand();

    public void insertBrand(@Param("brand")Brand brand);

    public void deleteSomePhone(@Param("id")Integer id);

    public void deleteBrand(@Param("id")Integer id);

//111111

}
